package com.dreamwhale.machinery.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 司机招聘
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("driver_info")
public class DriverInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 标题
     */
    private String title;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 年限
     */
    private Integer years;

    /**
     * 省
     */
    private String province;

    /**
     * 司机类型
     */
    private String driveTypeId;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 薪资下限
     */
    private Integer salaryMin;

    /**
     * 薪资上限
     */
    private Integer salaryMax;

    /**
     * 具体内容
     */
    private String message;

    /**
     * 图片
     */
    private String image;

    /**
     * 阅读次数
     */
    private Integer countNumber;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 是否删除
     */
    private Integer delFlag;

    /**
     * 发布分类
     */
    private Integer accessType;

    /**
     * 昵称
     */
    @TableField(exist = false)
    private String nickname;

    /**
     * 头像
     */
    @TableField(exist = false)
    private String avatar;

    /**
     * 收藏
     */
    @TableField(exist = false)
    private Integer collect;

    /**
     * 司机分类名称
     */
    @TableField(exist = false)
    private String driveTypeName;
}
